home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
eot_lensflare.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
1KB
|
50 lines
/*
* LensFlare.ifx.pre
* Written by Thomas Krehbiel
*
* Lens Flare Effect Over Time.
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_LensFlare_'
x1 = GETCLIP(base||'x1')
y1 = GETCLIP(base||'y1')
x2 = GETCLIP(base||'x2')
y2 = GETCLIP(base||'y2')
style = GETCLIP(base||'style')
IF x1 = "" THEN x1 = 10
IF y1 = "" THEN y1 = 10
IF x2 = "" THEN x2 = 100
IF y2 = "" THEN y2 = 100
IF style = "" THEN style = 'Standard'
Gadget.1 = 'INTEGER 200 5 50 14 "Starting Position X:"' x1
Gadget.2 = 'INTEGER 280 5 50 14 "Y:"' y1
Gadget.3 = 'INTEGER 200 20 50 14 "Ending Position X:"' x2
Gadget.4 = 'INTEGER 280 20 50 14 "Y:"' y2
Gadget.5 = 'STRING 200 38 100 14 "Lens Flare Style:"' style
Gadget.6 = 'FILEREQ 302 38 20 14 "Lens Flare Style:" Storage/LensFlare #?' style 'AT=5'
Gadget.7 = 'END'
NewComplexRequest '"Lens Flare"' Gadget 430 60
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'x1', result.1)
CALL SETCLIP(base||'y1', result.2)
CALL SETCLIP(base||'x2', result.3)
CALL SETCLIP(base||'y2', result.4)
CALL SETCLIP(base||'style', result.6.file)
EXIT